package com.example.bigwork.service;

import com.example.bigwork.dto.request.ProductCreateRequest;
import com.example.bigwork.dto.response.ProductResponse;
import com.example.bigwork.enums.ProductCategory;
import com.example.bigwork.entity.Product;

import java.util.List;

public interface ProductService {
    ProductResponse addProduct(ProductCreateRequest createRequest);
    ProductResponse getProductById(Long id);
    List<ProductResponse> searchProductsByName(String name);
    List<ProductResponse> getProductsByCategory(ProductCategory category);
    // Internal helper
    Product findProductEntityById(Long id);
}